package com.gkoudai.open.platform.entry;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.gkoudai.open.platform.common.CategoryCommon;
import com.gkoudai.open.platform.deserializer.DataTypeDeserializer;
import com.gkoudai.open.platform.deserializer.NewsTypeEnumListDeserializer;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author wangqi
 * @date 2025-05-12 14:23
 */
@Data
public class NewChangeLog {
    /**
     * 资讯id
     */
    private String id;
    /**
     * 资讯分类
     */
    @JsonDeserialize(using = NewsTypeEnumListDeserializer.class)
    private List<CategoryCommon.NewsTypeEnum> typeCode;
    /**
     * 变更类型
     */
    @JsonDeserialize(using = DataTypeDeserializer.class)
    private CategoryCommon.DataType dataType;
    /**
     * 标题
     */
    private String title;
    /**
     * 详情内容
     */
    private String content;
    /**
     * 发布时间
     */
    private String time;
    private String timeStr;
    /**
     * 更新时间
     */
    private Long updateTime;
}
